package com.punch.common.dto.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * OrderDTO-订单信息 表单
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/8/3
 */
@Data
public class OrderCancelDTO implements Serializable {

    /**
     * 主订单id
     */
    @ApiModelProperty(name = "orderNo", notes = "主订单id")
    @NotNull(message = "订单id不能为空")
    private Long orderId;


    /**
     * 退款类型 0-全部退款 1-只退款教具
     */
    @ApiModelProperty(name = "materialRefundFlag", notes = "只退款教具")
    @NotNull(message = "退款类型不能为空")
    private Integer refundType;
    /**
     * 退款原因
     */
    @ApiModelProperty(name = "orderNo", notes = "退款原因")
    @NotBlank(message = "退款原因不能为空")
    private String reason;

    /**
     * 退款金额:分
     */
    @ApiModelProperty(name = "orderNo", notes = "退款金额:分")
    @NotNull(message = "退款金额不能为空")
    private Integer refundFee;
}
